<?php
/**
 * home主页
 *
 * @author dingwu
 */

namespace App\Controllers;

use App\Support\BootstrapHtml;

class HomeController extends BaseController
{

    public function actionIndex()
    {
        $this->htmlTitle = '首页The Company Name';
        $html = $this->render('home/index');
        return response($html)->send();
    }

    public function actionCheckout()
    {
        $this->htmlTitle = 'Checkout page';
        $items = [
            "0" => "默认值",
            "1" => "选项一",
            "2" => "选项二",
            "3" => "选项三",
        ];
        $data = ['html' => BootstrapHtml::radios('select', 1, $items)];
        $html = $this->render('home/checkout', $data);
        return response($html)->send();
    }
}